//
//  InterfaceViewController.m
//  liwushuo
//
//  Created by qf1 on 16/4/18.
//  Copyright (c) 2016年 ZJH. All rights reserved.
//

#import "InterfaceViewController.h"
#import "SearchViewController.h"

@interface InterfaceViewController ()

@end

@implementation InterfaceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setNavigation];
}

- (void)setNavigation{
    [self.navigationController.navigationBar setBarTintColor:[UIColor orangeColor]];
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor]};
    self.view.backgroundColor = [UIColor whiteColor];
    UIBarButtonItem * rightbarItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"search"] style:UIBarButtonItemStylePlain target:self action:@selector(searchAction)];
    self.navigationItem.rightBarButtonItem = rightbarItem;
    [self.tabBarController.tabBar setBarTintColor:[UIColor whiteColor]];
    
}

- (void)searchAction{
    SearchViewController * vc = [[SearchViewController alloc] init];
    [self.navigationController pushViewController:vc animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
